package com.yuandian.api.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 告警阈值明细-实体
 * @author zfsn
 * @date 2023-4-4
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "告警阈值明细", description = "告警信息从表")
@TableName("conf_alarm_threshold")
public class ConfAlarmThreshold extends Model<ConfAlarmThreshold> {

	/**
	 *
	 */
	@ApiModelProperty(value = "id", notes = "")
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 *
	 */
	@ApiModelProperty(value = "告警编号", notes = "")
	private Integer alarmId;

	/**
	 *
	 */
	@ApiModelProperty(value = "加载顺序", notes = "")
	private Integer sortNum;

	/**
	 * 0表示所有,否则是对象的ID
	 */
	@ApiModelProperty(value = "告警级别", notes = "0表示所有,否则是对象的ID")
	private Integer alarmLevelId;

	/**
	 * 0-数值 1-百分比 9-字符串
	 */
	@ApiModelProperty(value = "值类型", notes = "0-数值 1-百分比 9-字符串")
	private Integer valueType;

	/**
	 *
	 */
	@ApiModelProperty(value = "最大值", notes = "")
	private Double maxValue;

	/**
	 *
	 */
	@ApiModelProperty(value = "最小值", notes = "")
	private Double minValue;

	/**
	 * 0-否1-失败
	 */
	@ApiModelProperty(value = "失败标识", notes = "0-否1-失败")
	private Integer failFlag;

	/**
	 * 状态码
	 */
	@ApiModelProperty(value = "状态码", notes = "状态码")
	private String statusCode;

	/**
	 * 0否，1是
	 */
	@ApiModelProperty(value = "是否模糊匹配", notes = "0否，1是")
	private Integer fuzzyMatch;

	/**
	 * 是否逻辑删除，0：否、1：是
	 */
	@ApiModelProperty(value = "状态", notes = "是否逻辑删除，0：否、1：是")
	private Integer isDel;

	/**
	 *
	 */
	@ApiModelProperty(value = "备注", notes = "")
	private String remarks;

	/**
	 * 代表固定阀值  1 代表 动态阀值类型
	 */
	@ApiModelProperty(value = "动态阀值类型：0或者不填", notes = "代表固定阀值  1 代表 动态阀值类型")
	private Integer thresholdType;

	/**
	 *
	 */
	@ApiModelProperty(value = "动态阀值：阀值系数", notes = "")
	private Double thresholdRatio;

	/**
	 * 告警等级
	 */
	private AlarmLevel alarmLevel;
}